"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.妖术 = void 0;
const Big_1 = require("../core/Big");
const Point_1 = require("../core/Point");
class 妖术 extends Big_1.Big {
    constructor() {
        super(...arguments);
        this.num_sacrificial = 0; //献祭大子的个数
    }
    terrainAdapt() {
        switch (this.point.terrain) {
            case Point_1.Terrain.SHAN:
            case Point_1.Terrain.SHUI:
                this.die(this.player);
        }
    }
    /** 献祭
     * @param num_die 献祭的大子个数
     */
    immolate(num_die) {
        this.num_sacrificial += num_die;
        let yu = this.num_sacrificial % 3;
        let chu = Math.floor(this.num_sacrificial / 3);
        this.num_sacrificial = yu;
        this.player.small.changeEnergy(chu);
    }
}
exports.妖术 = 妖术;
